package views;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class ViewContentProvider implements IStructuredContentProvider {
	
	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		//viewer.setInput(newInput);
	}
	
	@Override
	public void dispose() {
	}
	
	@Override
	public Object[] getElements(Object parent) {
		if (parent instanceof List<?>)
			return ((List<Object>)parent).toArray();
		return null;
	}
}
